<?php

namespace App\Repositories;

use App\Models\OfflineUser;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class OfflineUserRepository
 * @package App\Repositories
 * @version January 2, 2018, 8:38 am UTC
 *
 * @method OfflineUser findWithoutFail($id, $columns = ['*'])
 * @method OfflineUser find($id, $columns = ['*'])
 * @method OfflineUser first($columns = ['*'])
*/
class OfflineUserRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'name',
        'true_name',
        'phone',
        'email',
        'roles',
        'avatar',
        'status'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return OfflineUser::class;
    }
}
